package com.qianzhou.mapper;

import com.qianzhou.bo.UserBO;
import com.qianzhou.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    // 根据用户查找对应的订单的信息
    UserBO selectUserAndOrder(@Param("user") User user);

    // 根据用户查找对应的角色的信息
    UserBO selectUserAndRole(@Param("user") User user);
}